package org.edu.modules.stu.biye.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * entity-毕业证编号生成规则表
 */
@TableName("ve_stu_graduation_byzbh_rule")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="毕业证编号生成规则表对象", description="ve_stu_graduation_byzbh_rule")
public class VeStuGraduationByzbhRule extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "规则名称")
    @Length(max = 20)
        private String name;

    @TableField
    @ApiModelProperty(value = "规则编码：year=年份（默认4位），zy=专业（默认按学生所属专业代码），bj=班级（默认按学生所属班级代码），number=流水号（默认4位），orgCode=固定机构编码")
    @Length(max = 20)
        private String code;

    @TableField
    @ApiModelProperty(value = "规则值根据code区分：year, number 表示数字位数, orgCode表示固定机构编码值")
    @Length(max = 20)
        private String value;

    @TableField
    @ApiModelProperty(value = "规则编码序号从小到大")
        private Integer listSort;

    @TableField
    @ApiModelProperty(value = "是否启用1是0否")
        private Integer status;
}
